<template>
  <div id="app">
    App
    <hr />
    <!-- //! #1 通过属性绑定去传递 -->
    <child :msg="msg" />
  </div>
</template>

<script>
import Child from '@/components/Child.vue'
export default {
  name: 'App',
  components: {
    Child,
  },
  data() {
    return {
      msg: 'Hello World',
    }
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
